  /**
   * Generate time : 2017-05-02 15:19:21
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cg.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.util.DateUtils;

import java.math.BigDecimal;
import java.util.Date;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCGGas 
 * table comment : 生产计划 
 */
public class ZMCGGas extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdYear = " ";		/* 年份*/
	private String fdMonth = " ";		/* 月份*/
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdMiningId = " ";		/* 矿井ID*/
	private BigDecimal fdPlanDrill = new BigDecimal(0);		/* 钻孔进尺计划（米）*/		
	private BigDecimal fdDrillComplete = new BigDecimal(0);		/* 钻孔计划月完成（米）*/		
	private BigDecimal fdDrillSum = new BigDecimal(0);		/* 钻孔进尺年累计（米）*/		
	private BigDecimal fdDrillTb = new BigDecimal(0);		/* 钻孔进尺同比*/		
	private BigDecimal fdPlanGas = new BigDecimal(0);		/* 抽采月计划（万m3）*/		
	private BigDecimal fdGasComplete = new BigDecimal(0);		/* 抽采月完成（万m3）*/		
	private BigDecimal fdGasSum = new BigDecimal(0);		/* 抽采年累计（万m3）*/		
	private BigDecimal fdGasTb = new BigDecimal(0);		/* 抽采同比*/		
	private BigDecimal fdGasUse = new BigDecimal(0);		/* 本月瓦斯利用量（万m3）*/		
	private BigDecimal fdGasUsesum = new BigDecimal(0);		/* 累计瓦斯利用量（万m3）*/		
	private Date fdVirtualDate;	/* 发布时间*/
	private String fdEditor = " ";		/* 编制人*/
	private String fdStatus = " ";		/* 状态*/
	private String fdCreateDate = " ";		/* 编制日期*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonth");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanDrill");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("钻孔进尺计划（米）");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDrillComplete");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("钻孔计划月完成（米）");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDrillSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("钻孔进尺年累计（米）");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDrillTb");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("钻孔进尺同比");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanGas");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("抽采月计划（万m3）");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGasComplete");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("抽采月完成（万m3）");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGasSum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("抽采年累计（万m3）");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGasTb");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("抽采同比");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGasUse");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("本月瓦斯利用量（万m3）");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGasUsesum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("累计瓦斯利用量（万m3）");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setDescName("发布时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEditor");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编制日期");
	eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public ZMCGGas() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdYear - 年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	/**
	 * get the fdMonth - 月份
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}
	
	/**
	 * set the fdMonth - 月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	/**
	 * get the fdMiningId - 矿井ID
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId - 矿井ID
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the fdPlanDrill - 钻孔进尺计划（米）
	 * @return the fdPlanDrill
	 */
	public BigDecimal getFdPlanDrill() {
		return this.fdPlanDrill;
	}
	
	/**
	 * set the fdPlanDrill - 钻孔进尺计划（米）
	 */
	public void setFdPlanDrill(BigDecimal fdPlanDrill) {
		this.fdPlanDrill = fdPlanDrill;
	}
	/**
	 * get the fdDrillComplete - 钻孔计划月完成（米）
	 * @return the fdDrillComplete
	 */
	public BigDecimal getFdDrillComplete() {
		return this.fdDrillComplete;
	}
	
	/**
	 * set the fdDrillComplete - 钻孔计划月完成（米）
	 */
	public void setFdDrillComplete(BigDecimal fdDrillComplete) {
		this.fdDrillComplete = fdDrillComplete;
	}
	/**
	 * get the fdDrillSum - 钻孔进尺年累计（米）
	 * @return the fdDrillSum
	 */
	public BigDecimal getFdDrillSum() {
		return this.fdDrillSum;
	}
	
	/**
	 * set the fdDrillSum - 钻孔进尺年累计（米）
	 */
	public void setFdDrillSum(BigDecimal fdDrillSum) {
		this.fdDrillSum = fdDrillSum;
	}
	/**
	 * get the fdDrillTb - 钻孔进尺同比
	 * @return the fdDrillTb
	 */
	public BigDecimal getFdDrillTb() {
		return this.fdDrillTb;
	}
	
	/**
	 * set the fdDrillTb - 钻孔进尺同比
	 */
	public void setFdDrillTb(BigDecimal fdDrillTb) {
		this.fdDrillTb = fdDrillTb;
	}
	/**
	 * get the fdPlanGas - 抽采月计划（万m3）
	 * @return the fdPlanGas
	 */
	public BigDecimal getFdPlanGas() {
		return this.fdPlanGas;
	}
	
	/**
	 * set the fdPlanGas - 抽采月计划（万m3）
	 */
	public void setFdPlanGas(BigDecimal fdPlanGas) {
		this.fdPlanGas = fdPlanGas;
	}
	/**
	 * get the fdGasComplete - 抽采月完成（万m3）
	 * @return the fdGasComplete
	 */
	public BigDecimal getFdGasComplete() {
		return this.fdGasComplete;
	}
	
	/**
	 * set the fdGasComplete - 抽采月完成（万m3）
	 */
	public void setFdGasComplete(BigDecimal fdGasComplete) {
		this.fdGasComplete = fdGasComplete;
	}
	/**
	 * get the fdGasSum - 抽采年累计（万m3）
	 * @return the fdGasSum
	 */
	public BigDecimal getFdGasSum() {
		return this.fdGasSum;
	}
	
	/**
	 * set the fdGasSum - 抽采年累计（万m3）
	 */
	public void setFdGasSum(BigDecimal fdGasSum) {
		this.fdGasSum = fdGasSum;
	}
	/**
	 * get the fdGasTb - 抽采同比
	 * @return the fdGasTb
	 */
	public BigDecimal getFdGasTb() {
		return this.fdGasTb;
	}
	
	/**
	 * set the fdGasTb - 抽采同比
	 */
	public void setFdGasTb(BigDecimal fdGasTb) {
		this.fdGasTb = fdGasTb;
	}
	/**
	 * get the fdGasUse - 本月瓦斯利用量（万m3）
	 * @return the fdGasUse
	 */
	public BigDecimal getFdGasUse() {
		return this.fdGasUse;
	}
	
	/**
	 * set the fdGasUse - 本月瓦斯利用量（万m3）
	 */
	public void setFdGasUse(BigDecimal fdGasUse) {
		this.fdGasUse = fdGasUse;
	}
	/**
	 * get the fdGasUsesum - 累计瓦斯利用量（万m3）
	 * @return the fdGasUsesum
	 */
	public BigDecimal getFdGasUsesum() {
		return this.fdGasUsesum;
	}
	
	/**
	 * set the fdGasUsesum - 累计瓦斯利用量（万m3）
	 */
	public void setFdGasUsesum(BigDecimal fdGasUsesum) {
		this.fdGasUsesum = fdGasUsesum;
	}
	/**
	 * get the fdVirtualDate - 发布时间
	 * @return the fdVirtualDate
	 */
	public Date getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 发布时间
	 */
	public void setFdVirtualDate(Date fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the fdEditor - 编制人
	 * @return the fdEditor
	 */
	public String getFdEditor() {
		return this.fdEditor;
	}
	
	/**
	 * set the fdEditor - 编制人
	 */
	public void setFdEditor(String fdEditor) {
		this.fdEditor = fdEditor;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	public String getFdCreateDate() {
		return fdCreateDate;
	}
	
	public void setFdCreateDate(String fdCreateDate) {
		this.fdCreateDate = fdCreateDate;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdPlanDrill(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPlanDrill")), fdPlanDrill));
		setFdDrillComplete(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdDrillComplete")), fdDrillComplete));
		setFdDrillSum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdDrillSum")), fdDrillSum));
		setFdDrillTb(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdDrillTb")), fdDrillTb));
		setFdPlanGas(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPlanGas")), fdPlanGas));
		setFdGasComplete(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdGasComplete")), fdGasComplete));
		setFdGasSum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdGasSum")), fdGasSum));
		setFdGasTb(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdGasTb")), fdGasTb));
		setFdGasUse(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdGasUse")), fdGasUse));
		setFdGasUsesum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdGasUsesum")), fdGasUsesum));
		setFdVirtualDate(DateUtils.toDate(StringUtils.toString(map.get("fdVirtualDate"))));
		setFdEditor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditor")), fdEditor));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdCreateDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDate")), fdCreateDate));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdMonth",StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdPlanDrill",StringUtils.toString(fdPlanDrill, eiMetadata.getMeta("fdPlanDrill")));	
			map.put("fdDrillComplete",StringUtils.toString(fdDrillComplete, eiMetadata.getMeta("fdDrillComplete")));	
			map.put("fdDrillSum",StringUtils.toString(fdDrillSum, eiMetadata.getMeta("fdDrillSum")));	
			map.put("fdDrillTb",StringUtils.toString(fdDrillTb, eiMetadata.getMeta("fdDrillTb")));	
			map.put("fdPlanGas",StringUtils.toString(fdPlanGas, eiMetadata.getMeta("fdPlanGas")));	
			map.put("fdGasComplete",StringUtils.toString(fdGasComplete, eiMetadata.getMeta("fdGasComplete")));	
			map.put("fdGasSum",StringUtils.toString(fdGasSum, eiMetadata.getMeta("fdGasSum")));	
			map.put("fdGasTb",StringUtils.toString(fdGasTb, eiMetadata.getMeta("fdGasTb")));	
			map.put("fdGasUse",StringUtils.toString(fdGasUse, eiMetadata.getMeta("fdGasUse")));	
			map.put("fdGasUsesum",StringUtils.toString(fdGasUsesum, eiMetadata.getMeta("fdGasUsesum")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdEditor",StringUtils.toString(fdEditor, eiMetadata.getMeta("fdEditor")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
			map.put("fdCreateDate",StringUtils.toString(fdCreateDate, eiMetadata.getMeta("fdCreateDate")));
			
		return map;
	
	}
}